<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link th:href="${ecs_css_path}" rel="stylesheet" type="text/css" />
<!-- {if $cat_style} -->
<link th:href="${cat_style}" rel="stylesheet" type="text/css" />
<!-- {/if} -->

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/1.11.3.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/on.js"></script>
<!-- auto replace end-->
<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/global.js"></script>
<script type="text/javascript" src="/static/js/compare.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>

  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>

<div class="block clearfix">
  <!--left start-->
  <div class="AreaL">
    <!-- TemplateBeginEditable name="左边区域" -->
<div th:replace="common/tpls/category_tree_tpl::category_tree"></div>


  <div id="category_tree">
  <div class="tit">商品分类</div>
    <!--{foreach from=$categories item=cat}-->
     <dl>
     <dt><a th:href="${cat.url}"></a></dt>
     <dd><!--{foreach from=$cat.cat_id item=child}-->
     <a th:href="${child.url}"></a>
      
     <!--{/foreach}-->
       </dd>
       </dl>
    <!--{/foreach}--> 
  </div>

<div class="blank"></div>

 <!-- #EndLibraryItem -->
<div th:replace="common/tpls/history_tpl::history"></div>

<div class="box" id='history_div'>
 <h3><span></span></h3>
 <div class="box_1">
 
  <div class="boxCenterList clearfix" id='history_list'>
    {insert name='history'}
  </div>
 </div>
</div>
<div class="blank5"></div>
<script type="text/javascript">
if (document.getElementById('history_list').innerHTML.replace(/\s/g,'').length<1)
{
    document.getElementById('history_div').style.display='none';
}
else
{
    document.getElementById('history_div').style.display='block';
}
function clear_history()
{
Ajax.call('user.php', 'act=clear_history',clear_history_Response, 'GET', 'TEXT',1,1);
}
function clear_history_Response(res)
{
document.getElementById('history_list').innerHTML = '';
}
</script>
 <!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="左边广告区域（宽200px）" -->
<!-- TemplateEndEditable -->
    <!--AD end-->
  </div>
  <!--left end-->
  <!--right start-->
  <div class="AreaR">

	 <!--组合搜索 开始-->
	  <!--{if $brands.1 || $price_grade.1 || $filter_attr_list}-->
	  <div class="box">
		 <div class="box_1">
			<h3><span></span></h3>
			<!--{if $brands.1}-->
			<div class="screeBox">
			  <strong>：</strong>
				<!--{foreach from=$brands item=brand}-->
					<!-- {if $brand.selected} -->
					<span></span>
					<!-- {else} -->
					<a th:href="${brand.url}"></a>&nbsp;
					<!-- {/if} -->
				<!--{/foreach}-->
			</div>
			<!--{/if}-->
			<!--{if $price_grade.1}-->
			<div class="screeBox">
			<strong>：</strong>
			<!--{foreach from=$price_grade item=grade}-->
				<!-- {if $grade.selected} -->
				<span></span>
				<!-- {else} -->
				<a th:href="${grade.url}"></a>&nbsp;
				<!-- {/if} -->
			<!--{/foreach}-->
			</div>
			<!--{/if}-->
			<!--{foreach from=$filter_attr_list item=filter_attr}-->
      <div class="screeBox">
			<strong> :</strong>
			<!--{foreach from=$filter_attr.attr_list item=attr}-->
				<!-- {if $attr.selected} -->
				<span></span>
				<!-- {else} -->
				<a th:href="${attr.url}"></a>&nbsp;
				<!-- {/if} -->
			<!--{/foreach}-->
			</div>
      <!--{/foreach}-->
		 </div>
		</div>
		<div class="blank"></div>
	  <!-- {/if} -->
	 <!--组合搜索 结束-->
   <!-- TemplateBeginEditable name="右边区域" -->
<div th:replace="common/tpls/goods_list_tpl::goods_list"></div>

<div class="box">
 <div class="box_1">
  <h3>
  <span></span>
  <form method="GET" class="sort" name="listform">
  ：
  <a href="javascript:;" onClick="javascript:display_mode('list')"><img src="/static/images/display_mode_list<!-- {if $pager.display == 'list'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.list}"></a>
  <a href="javascript:;" onClick="javascript:display_mode('grid')"><img src="/static/images/display_mode_grid<!-- {if $pager.display == 'grid'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.grid}"></a>
  <a href="javascript:;" onClick="javascript:display_mode('text')"><img src="/static/images/display_mode_text<!-- {if $pager.display == 'text'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.text}"></a>&nbsp;&nbsp;
     
  <a href="category.html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=goods_id&order=<!-- {if $pager.sort == 'goods_id' && $pager.order == 'DESC'} -->ASC<!-- {else} -->DESC<!-- {/if} -->#goods_list"><img src="/static/images/goods_id_<!-- {if $pager.sort == 'goods_id'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.goods_id}"></a>
  <a href="category.html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=shop_price&order=<!-- {if $pager.sort == 'shop_price' && $pager.order == 'ASC'} -->DESC<!-- {else} -->ASC<!-- {/if} -->#goods_list"><img src="/static/images/shop_price_<!-- {if $pager.sort == 'shop_price'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.shop_price}"></a>
  <a href="category.html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=last_update&order=<!-- {if $pager.sort == 'last_update' && $pager.order == 'DESC'} -->ASC<!-- {else} -->DESC<!-- {/if} -->#goods_list"><img src="/static/images/last_update_<!-- {if $pager.sort == 'last_update'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.last_update}"></a>

  <input type="hidden" name="category" value="" />
  <input type="hidden" name="display" value="" id="display" />
  <input type="hidden" name="brand" value="" />
  <input type="hidden" name="price_min" value="" />
  <input type="hidden" name="price_max" value="" />
  <input type="hidden" name="filter_attr" value="" />
  <input type="hidden" name="page" value="" />
  <input type="hidden" name="sort" value="" />
  <input type="hidden" name="order" value="" />

    </form>
  </h3>

    <!-- {if $category > 0} -->
  <form name="compareForm" action="compare.php" method="post" onSubmit="return compareGoods(this);">
    <!-- {/if} -->
    <!-- {if $pager.display == 'list'} -->
    <div class="goodsList">
    <!--{foreach name=goods_list from=$goods_list item=goods}-->
    <ul class="clearfix bgcolor"<!--{if $smarty.foreach.goods_list.index mod 2 eq 0}-->id=""<!--{else}-->id="bgcolor"<!--{/if}-->>
    <li class="thumb"><a th:href="${goods.url}"><img th:src="${goods.goods_thumb}" th:attr="alt=${goods.goods_name}" /></a></li>
    <li class="goodsName">
    <div class="div_name">
    <a th:href="${goods.url}" class="f6">
        <!-- {if $goods.goods_style_name} -->
        <br />
        <!-- {else} -->
        <br />
        <!-- {/if} -->
      </a>
     <!-- {if $goods.goods_brief} -->
    
    <!-- {/if} -->
     </div>
     <div>
     <a href="javascript:addToCart()" ><img src="/static/images/goumai.gif"></a>
    <a href="javascript:collect();"><img src="/static/images/shoucang.gif"></a>
    
    </div>
    </li>

    <li class="action">
      <!-- {if $show_marketprice} -->
    <font class="market" style="padding-right:10px;"></font> <br/>
    <!-- {/if} -->
    <!--{if $goods.promote_price neq "" } -->
    <font class="shop"></font> 
    <!--{else}-->
    <font class="shop"></font> 
    <!--{/if}-->
    </li>
    </ul>
    <!--{/foreach}-->
    </div>
    <!-- {elseif $pager.display == 'grid'} -->
    <div class="clearfix goodsBox" style="border:none; padding:11px 0 10px 5px;">
    <!--{foreach from=$goods_list item=goods}-->
    <!-- {if $goods.goods_id} -->
     <div class="goodsItem">
           <a th:href="${goods.url}"><img th:src="${goods.goods_thumb}" th:attr="alt=${goods.goods_name}" class="goodsimg" /></a><br />
           <p><a th:href="${goods.url}" th:attr="title=${goods.name}"></a></p>
           <!-- {if $show_marketprice} -->
            <font class="market_s"></font><br />
            <!-- {/if} -->
            <!--{if $goods.promote_price neq "" } -->
           <font class="shop_s"></font><br />
            <!--{else}-->
           <font class="shop_s"></font><br />
            <!--{/if}-->
            <a href="javascript:addToCart()" ><img src="/static/images/goumai.gif"></a> &nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:collect();"><img src="/static/images/shoucang.gif"></a>
        </div>
    <!--{/if}-->
    <!--{/foreach}-->
    </div>
    <!-- {elseif $pager.display == 'text'} -->
    <div class="goodsList">
    <!--{foreach from=$goods_list item=goods}-->
     <ul class="clearfix bgcolor"<!--{if $smarty.foreach.goods_list.index mod 2 eq 0}-->id=""<!--{else}-->id="bgcolor"<!--{/if}-->>
    <li style="margin-right:15px;">
    <a href="javascript:;" id="compareLink" onClick="Compare.add(,'','')"
 class="f6"></a>
    </li>
    <li class="goodsName">
    <div class="div_name">
    <a th:href="${goods.url}" class="f6 f5">
        <!-- {if $goods.goods_style_name} -->
        <br />
        <!-- {else} -->
        <br />
        <!-- {/if} -->
      </a>
     
     <!-- {if $goods.goods_brief} -->
    <br />
    <!-- {/if} --> 
    </div>
     <a href="javascript:collect();" class="bnt_blue">加入收藏</a>
    <a href="javascript:addToCart()" class="bnt_blue">立即购买</a>
    </li>
    <li>
   
    </li>
    <li class="action">
     <!-- {if $show_marketprice} -->
    <font class="market"></font><br />
    <!-- {/if} -->
    <!--{if $goods.promote_price neq "" } -->
    <font class="shop"></font><br />
    <!--{else}-->
    <font class="shop"></font><br />
    <!--{/if}-->
    </li>
    </ul>
    <!--{/foreach}-->
    </div>
    <!-- {/if} -->
  <!-- {if $category > 0} -->
  </form>
  <!-- {/if} -->

 </div>
</div>
<div class="blank5"></div>
<script type="Text/Javascript" language="JavaScript">
<!--
{literal}
function selectPage(sel)
{
  sel.form.submit();
}
{/literal}
//-->
</script>
<script type="text/javascript">
window.onload = function()
{
  Compare.init();
  fixpng();
}
{foreach from=$lang.compare_js item=item key=key}
{if $key neq 'button_compare'}
var  = "";
{else}
var button_compare = '';
{/if}
{/foreach}
var compare_no_goods = "";
var btn_buy = "";
var is_cancel = "";
var select_spe = "";
</script>
 <!-- #EndLibraryItem -->
<div th:replace="common/tpls/pages_tpl::pages"></div>

<!--翻页 start-->
<form name="selectPageForm" action="" method="get">
<!-- {if $pager.styleid eq 0 } -->
<div id="pager">
   <span> <a th:href="${pager.page_first}"></a> <a th:href="${pager.page_prev}"></a> <a th:href="${pager.page_next}"></a> <a th:href="${pager.page_last}"></a> </span>
    <!--{foreach from=$pager.search key=key item=item}-->
      {if $key eq 'keywords'}
          <input type="hidden" name="" value="" />
        {else}
          <input type="hidden" name="" value="" />
      {/if}
    <!--{/foreach}-->
    <select name="page" id="page" onchange="selectPage(this)">
    {html_options options=$pager.array selected=$pager.page}
    </select>
</div>
<!--{else}-->

<!--翻页 start-->
 <div id="pager" class="pagebar">
  <span class="f_l " style="margin-right:10px;"><b></b> </span>
  <!-- {if $pager.page_first} --><a th:href="${pager.page_first}"> ...</a><!-- {/if} -->
  <!-- {if $pager.page_prev} --><a class="prev" th:href="${pager.page_prev}"></a><!-- {/if} -->
  <!-- {if $pager.page_count neq 1} -->
    <!--{foreach from=$pager.page_number key=key item=item}-->
      <!-- {if $pager.page eq $key} -->
      <span class="page_now"></span>
      <!-- {else} -->
      <a th:href="${item}">[]</a>
      <!-- {/if} -->
    <!--{/foreach}-->
  <!-- {/if} -->

  <!-- {if $pager.page_next} --><a class="next" th:href="${pager.page_next}"></a><!-- {/if} -->
  <!-- {if $pager.page_last} --><a class="last" th:href="${pager.page_last}">...</a><!-- {/if} -->
  <!-- {if $pager.page_kbd} -->
    <!--{foreach from=$pager.search key=key item=item}-->
      {if $key eq 'keywords'}
          <input type="hidden" name="" value="" />
        {else}
          <input type="hidden" name="" value="" />
      {/if}
    <!--{/foreach}-->
    <kbd style="float:left; margin-left:8px; position:relative; bottom:3px;"><input type="text" name="page" onkeydown="if(event.keyCode==13)selectPage(this)" size="3" class="B_blue" /></kbd>
    <!-- {/if} -->
</div>
<!--翻页 END-->

<!-- {/if} -->
</form>
<script type="Text/Javascript" language="JavaScript">
<!--
{literal}
function selectPage(sel)
{
  sel.form.submit();
}
{/literal}
//-->
</script>

 <!-- #EndLibraryItem -->
<!-- TemplateEndEditable -->


  </div>  
  <!--right end-->
</div>

<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
</html>
